import { createStore, applyMiddleware, combineReducers } from "redux";
import thunk from "redux-thunk";
import { composeWithDevTools } from "redux-devtools-extension";
import tokenReducer from "./reducer";
import homeReducer from "./home/index";

const allReducer = combineReducers({
  token: tokenReducer,
  home: homeReducer,
});

export default createStore(
  allReducer,
  composeWithDevTools(applyMiddleware(thunk))
);
